-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sql: replace deprecated descs.Collection method calls #93570
Conversation
Informs cockroachdb#64089. Release note: None
This gets rid of some deprecated descs.Collection method calls. Informs cockroachdb#64089. Release note: None
This commit replaces usages of that method with calls to GetAllObjectsInSchema. Informs cockroachdb#64089. Release note: None
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm cool with this change. More generally I think functions have muddled our terminology in a bad way.
@@ -69,18 +70,27 @@ type schemaResolver struct { | |||
// GetObjectNamesAndIDs implements the resolver.SchemaResolver interface. | |||
func (sr *schemaResolver) GetObjectNamesAndIDs( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like we've got a terminology problem these days: is a function an object?
By my old definition, it is, but it isn't here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is, but it's also a special kind of object in that unlike other objects we don't expect functions to have a namespace entry.
I completely agree with you in general, btw. Untangling GetObjectNamesAndIDs
is going to be its own unit of work focused on the resolver interface, and it's something I want to do this week.
Thanks for the review! bors r+ |
Build succeeded: |
descs: remove GetObjectNamesAndIDs method
This commit replaces usages of that method with calls to
GetAllObjectsInSchema.
Informs #64089.
Release note: None
sql: amortize schema descriptor lookups in vtable generation
This gets rid of some deprecated descs.Collection method calls.
Informs #64089.
Release note: None
scbuild,scdeps: replace deprecated descs.Collection method calls
Informs #64089.
Release note: None